Debian GNU/kFreeBSD
38 西 Debian
dictoss@live.jp
2010 8 22
bg=white
杉本 典充 Debian GNU/kFreeBSD で暮らせる環境を構築してみ 2/26
bg=white
Debian GNU/kFreeBSD
Debian GNU/kFreeBSD
xorg
杉本 典充 Debian GNU/kFreeBSD で暮らせる環境を構築してみ 3/26
bg=white
(dictoss@live.jp)
Twitter : dictoss
Debian GNU/Linux 2 使 (
testing sarge)
Debian GNU/Linux FreeBSD 使
Debian GNU/kFreeBSD OS
使
杉本 典充 Debian GNU/kFreeBSD で暮らせる環境を構築してみ 4/26
bg=white
Debian GNU/kFreeBSD
Debian Project OS
FreeBSD 使
dpkg/apt
DFSG
i386 amd64 2
Debian Wiki (
)
杉本 典充 Debian GNU/kFreeBSD で暮らせる環境を構築してみ 5/26
bg=white
Debian GNU/kFreeBSD Debian
GNU/Linux (1)
OSS
eth0 ( em0 )
/dev/ad4s1 ( HDD)
/dev/da0s1 (USB )
mount /sbin
杉本 典充 Debian GNU/kFreeBSD 暮らせる環境を構築してみる 6/26
bg=white
Debian GNU/kFreeBSD Debian
GNU/Linux (2)
UFS ext2 使
ext3
Debian Wiki zfsutils
ZFS 使 (/
ZFS )
杉本 典充 Debian GNU/kFreeBSD 暮らせる環境を構築してみる 7/26
bg=white
Debian GNU/kFreeBSD Debian
GNU/Linux (3)
FreeBSD Jail (chroot )
VirtualBox (Debian )
QEMU
杉本 典充 Debian GNU/kFreeBSD 暮らせる環境を構築してみる 8/26
bg=white
daily
i386
杉本 典充 Debian GNU/kFreeBSD 暮らせる環境を構築してみる 9/26
bg=white
(1)
$ uname -a
GNU/kFreeBSD deb-NorTP60 7.3-1-686 #0
Tue Jul 20 02:12:21 CEST 2010 i686 i386
Genuine Intel(R) CPU T2400 @ 1.83GHz GNU/kFreeBSD
$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : Genuine Intel(R) CPU T2400 @ 1.83GHz
stepping : 8
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat b19 b21 mmxext mmx fxsr xmm b26 b27 b28 b29 3dnow
cpu MHz : 1828.76
bogomips : 1828.76
CPU 1
杉本 典充 Debian GNU/kFreeBSD 暮らせる環境を構築してみる 10/26
bg=white
(2)
$ apt-cache search kfreebsd-image-*
kfreebsd-image-7-486 - kernel of FreeBSD 7 image
kfreebsd-image-7-686-smp - kernel of FreeBSD 7 image
kfreebsd-image-7-686 - kernel of FreeBSD 7 image
kfreebsd-image-7.3-1-486 - kernel of FreeBSD 7.3 image
kfreebsd-image-7.3-1-686-smp - kernel of FreeBSD 7.3 image
kfreebsd-image-7.3-1-686 - kernel of FreeBSD 7.3 image
kfreebsd-image-8-486 - kernel of FreeBSD 8 image
kfreebsd-image-8-686-smp - kernel of FreeBSD 8 image
kfreebsd-image-8-686 - kernel of FreeBSD 8 image
kfreebsd-image-8.0-1-486 - kernel of FreeBSD 8.0 image
kfreebsd-image-8.0-1-686-smp - kernel of FreeBSD 8.0 image
kfreebsd-image-8.0-1-686 - kernel of FreeBSD 8.0
$ sudo apt-get install kfreebsd-image-7.3-1.686-smp
$ sudo reboot
杉本 典充 Debian GNU/kFreeBSD 暮らせる環境を構築してみる 11/26
bg=white
(3)
$ uname -a
GNU/kFreeBSD deb-NorTP60 7.3-1-686-smp #0
Tue Jul 20 02:43:20 CEST 2010 i686 i386
Genuine Intel(R) CPU T2400 @ 1.83GHz GNU/kFreeBSD
$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
model name : Genuine Intel(R) CPU T2400 @ 1.83GHz
processor : 1
vendor_id : GenuineIntel
model name : Genuine Intel(R) CPU T2400 @ 1.83GHz
stepping : 8
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat b19 b21 mmxext mmx fxsr xmm b26 b27 b28 b29 3dnow
CPU 2 使
杉本 典充 Debian GNU/kFreeBSD 暮らせる環境を構築してみる 12/26
bg=white
Xorg
$ sudo apt-get install xorg
Setting up hal (0.5.14-3) ...
Reloading system message bus config...
Failed to open connection to ‘‘system’’ message bus:
Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused
invoke-rc.d: initscript dbus, action ‘‘force-reload’’ failed.
Starting Hardware abstraction layer: haldinvoke-rc.d: initscript hal,
action ‘‘start’’ failed.
dpkg: error processing hal (--configure):
subprocess installed post-installation script returned error exit status 1
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469528
杉本 典充 Debian GNU/kFreeBSD 暮らせる環境を構築してみる 13/26
bg=white
Xorg
hal /etc/init.d/dbus reload
dbus /etc/init.d/dbus start
apt-get install xorg
/etc/init.d/dbus
start
xorg
xorg.conf /etc/X11/xorg.conf
startx OK
杉本 典充 Debian GNU/kFreeBSD 暮らせる環境を構築してみる 14/26
bg=white
gdm
gdm
gdm purge
杉本 典充 Debian GNU/kFreeBSD 暮らせる環境を構築してみる 15/26
bg=white
$ sudo apt-get install xfce4 xfce4-goodies
$ vim ˜/.xinitrc
exec xfce4-session
$ chmod 744 ˜/.xinitrc
$ startx
Xfce4
杉本 典充 Debian GNU/kFreeBSD 暮らせる環境を構築してみる 16/26
bg=white
$ sudo apt-get install otf-ipafont otf-ipaexfnt
$ sudo apt-get install locales-all
$ sudo apt-get install uim uim-anthy
$ vim ˜/.xinitrc
export LANGUAGE=’ja_JP.UTF-8’
export LC_ALL=’ja_JP.UTF-8’
export LANG=’ja_JP.UTF-8’
export XMODIFIRES=’@im=uim’
export GTK_IM_MODULE=’uim’
export QT_IM_MODULE=’uim’
exec xfce4-session
$ startx
杉本 典充 Debian GNU/kFreeBSD 暮らせる環境を構築してみる 17/26
bg=white
$ sudo apt-get install gcc g++ gdb make
$ sudo apt-get install build-essential pbuilder debian-keyring
tcsh
$ apt-get source tcsh
$ sudo apt-get build-dep tcsh
$ cd tcsh-6.17.00
$ dch
$ debuild -i -us -uc -b
$ sudo dpkg -i tcsh_6.17.00-3.1_kfreebsd-i386.deb
deb
杉本 典充 Debian GNU/kFreeBSD 暮らせる環境を構築してみる 18/26
bg=white
Debian (1)
contrib, non-free apt-line
$ sudo vim /etc/apt/sources.list
deb http://ftp.jp.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.jp.debian.org/debian/ squeeze main contrib non-free
deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main
$ sudo apt-get install git-core
$ sudo apt-get install gs gs-esp gs-cjk-resource
$ sudo apt-get install ptex-bin xdvik-ja dvipsk-ja
$ sudo apt-get install okumura-clsfiles vfdata-morisawa5
$ sudo apt-get install texlive-latex-extra
$ sudo apt-get install poppler-data
$ sudo apt-get install evince
杉本 典充 Debian GNU/kFreeBSD 暮らせる環境を構築してみる 19/26
bg=white
Debian (2)
$ cd
$ git clone git://git.debian.org/git/tokyodebian/monthly-report.git/
$ cd monthly-report
$ make
杉本 典充 Debian GNU/kFreeBSD 暮らせる環境を構築してみる 20/26
bg=white
$ sudo apt-get install emacs emacs23-el
$ sudo apt-get install sylpheed sylpheed-i18n
$ sudo apt-get install iceweasel iceweasel-l10n-ja
$ sudo apt-get install audacious audacity
$ sudo apt-get install gxine
$ sudo apt-get install jd
$ sudo apt-get install gftp
杉本 典充 Debian GNU/kFreeBSD 暮らせる環境を構築してみる 21/26
bg=white
(1)
mp3
$ kldstat
1 10 0xc0400000 890000 kfreebsd-7.3-1-686-smp.gz
2 1 0xc0d9c000 57fdc acpi.ko
3 1 0xc5c7a000 67000 radeon.ko
4 1 0xc5ce1000 14000 drm.ko
$ sudo kldload snd_hda
$ kldstat
1 10 0xc0400000 890000 kfreebsd-7.3-1-686-smp.gz
2 1 0xc0d9c000 57fdc acpi.ko
3 1 0xc5c7a000 67000 radeon.ko
4 1 0xc5ce1000 14000 drm.ko
5 1 0xc611f000 1a000 snd_hda.ko
6 1 0xc6139000 40000 sound.ko
杉本 典充 Debian GNU/kFreeBSD 暮らせる環境を構築してみる 22/26
bg=white
(2)
$ sudo vim /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line. Comments begin with
# a ‘‘#’’, and everything on the line after them is ignored.
snd_hda.ko
(*.ko)
/lib/modules/7.3-1-smp
kfreebsd-image-7.3-1-smp
杉本 典充 Debian GNU/kFreeBSD 暮らせる環境を構築してみる 23/26
bg=white
Flash
Abobe FreeBSD
gnash
(codec )
Linux
ZFS
杉本 典充 Debian GNU/kFreeBSD 暮らせる環境を構築してみる 24/26
bg=white
Debian
Debian GNU/kFreeBSD Debian GNU/Linux Debian
OK
OS FreeBSD
Debian
BTS
Debian GNU/kFreeBSD Squeeze
杉本 典充 Debian GNU/kFreeBSD 暮らせる環境を構築してみる 25/26
bg=white
http://tokyodebian.alioth.debian.org/pdf/
debianmeetingresume201006-iwamatsu-presentation.
pdf
http://wiki.debian.org/Debian_GNU/kFreeBSD_FAQ
杉本 典充 Debian GNU/kFreeBSD 暮らせる環境を構築してみる 26/26